/**
 * 
 */
package com.weixin.exception;

import com.weixin.enums.ResultEnum;

/**
 * @author CJunGod 1038804380@qq.com
 *
 */
public class SellException extends RuntimeException{

	private Integer code;

	/**
	 * @param code
	 */
	public SellException(ResultEnum resultEnum) {
		super(resultEnum.getDesc());
		
		this.code = resultEnum.getCode();
	}

	public SellException(Integer code, String message){
		super(message);
		this.code = code;
	}
	
	
}
